package com.wlps.mapper;

import com.wlps.entity.FirstClassification;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wlps.entity.SecondClassification;
import com.wlps.vo.sendcenter.commodity.FirstClassificationVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 一级分类表(first_classification)(删除一级分类时下面不能存在二级分类) Mapper 接口
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
@Repository
public interface FirstClassificationMapper extends BaseMapper<FirstClassification> {
    /**
     * 查询一级分类商品数量
     *
     * @return
     */
    List<FirstClassificationVo> selectFirstClassificationCount();

    /**
     * 查询一级分类下的二级分类数量
     *
     * @return
     */
    List<FirstClassificationVo> selectSecondClassificationCount();

    /**
     * 查询一级分类下得二级分类列表
     *
     * @return
     */
    List<SecondClassification> selectSecondClassificationList();
}
